package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.BookingHotelApplicationMapper;
import com.wanmait.baohan.pojo.BookingHotelApplication;
import com.wanmait.baohan.service.BookingHotelApplicationService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class BookingHotelApplicationServiceImpl implements BookingHotelApplicationService {
    @Resource
    BookingHotelApplicationMapper bookingHotelApplicationMapper;
    @Override
    public void insert(BookingHotelApplication object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(BookingHotelApplication object) {
        bookingHotelApplicationMapper.updateByPrimaryKey(object);
    }

    @Override
    public BookingHotelApplication findById(Integer id) {
        return null;
    }

    @Override
    public List<BookingHotelApplication> findAll() {
        return null;
    }

    @Override
    public List<BookingHotelApplication> findAll(BookingHotelApplication object) {
        return null;
    }

    @Override
    public PageInfo<BookingHotelApplication> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<BookingHotelApplication> findPage() {
        return null;
    }

    @Override
    public PageInfo<BookingHotelApplication> findPage(int pageNum, BookingHotelApplication object) {
        return null;
    }

    @Override
    public PageInfo<BookingHotelApplication> findPage(BookingHotelApplication object) {
        return null;
    }

    @Override
    public void updateStateById(Integer id, Integer state) {
        bookingHotelApplicationMapper.updateState(id,state);
    }
}
